package ZuoYe4_19;

public class Yuangong4 {
	private String name;
	private int gonghao;
	private String sex;
	private int gongzi;
	private int nianling;

	public Yuangong4(String name, int gonghao, String sex, int gongzi,
			int nianling) {
		super();
		this.name = name;
		this.gonghao = gonghao;
		this.sex = sex;
		this.gongzi = gongzi;
		this.nianling = nianling;
	}

	public Yuangong4(int gonghao) {
		super();
		this.gonghao = gonghao;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getGonghao() {
		return gonghao;
	}

	public void setGonghao(int gonghao) {
		this.gonghao = gonghao;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getGongzi() {
		return gongzi;
	}

	public void setGongzi(int gongzi) {
		this.gongzi = gongzi;
	}

	public int getNianling() {
		return nianling;
	}

	public void setNianling(int nianling) {
		this.nianling = nianling;
	}

}
